Ignacio Casal Quinteiro [Thu, 20 Sep 2012 10:50:27 +0000 (12:50 +0200)]
colobutton: skip set_rgba as it is already in the choosercolor interface
Krishnababu Krothapalli [Thu, 20 Sep 2012 10:47:42 +0000 (16:17 +0530)]
Updated Telugu Translations
Krishnababu Krothapalli [Thu, 20 Sep 2012 10:47:09 +0000 (16:17 +0530)]
Updated Telugu Translations
Benjamin Otte [Thu, 20 Sep 2012 00:39:35 +0000 (02:39 +0200)]
blur: Use recording surface for capturing things to blur
This gets around clipping issues quite nicely and provides us with a
(mostly theoretical) performance boost.
Andrea Cimitan [Mon, 16 Apr 2012 12:22:18 +0000 (13:22 +0100)]
shadow: add blur to icon-shadow (spinner)
Andrea Cimitan [Mon, 16 Apr 2012 12:02:59 +0000 (13:02 +0100)]
shadow: add blur to icon-shadow (icon)
Andrea Cimitan [Mon, 16 Apr 2012 11:02:41 +0000 (12:02 +0100)]
shadow: add blur to box-shadow
Andrea Cimitan [Tue, 17 Apr 2012 20:14:39 +0000 (16:14 -0400)]
shadow: add blur to text-shadow
Cosimo Cecchi [Tue, 17 Apr 2012 19:43:58 +0000 (15:43 -0400)]
shadow: add code to render blurred shadows
Split out the blurred shadow rendering in three steps:
- creation of a surface of the appropriate size - we use the clip
rectangle as a good measurement for the size, since we won't render
out of it anyway
- painting the unblurred shape on the surface - this is responsibility
of the single shadow implementations
- blur the surface and compose the result back on the original cairo_t
This means we can share code between the implementations for the first
and third steps; it also makes the code independent of the rendered
size, so we can avoid passing down a cairo_rectangle_t with e.g. the
icon coordinates.
Benjamin Otte [Wed, 19 Sep 2012 20:39:47 +0000 (22:39 +0200)]
blur: Do the same thing for rows and cols
Benjamin Otte [Wed, 19 Sep 2012 20:38:24 +0000 (22:38 +0200)]
blur: Use rowstride
Benjamin Otte [Wed, 19 Sep 2012 20:29:11 +0000 (22:29 +0200)]
blur: Simplify code
It's always the same code, so there's no need for switch statements.
Benjamin Otte [Wed, 19 Sep 2012 20:23:47 +0000 (22:23 +0200)]
blur: Fix pixel sizes
The code accesses pixels in a chunks of 4 bytes, so we must only support
formats where the size of a single pixel is 4 bytes.
Fix RGB24 to be 4 bytes (the alpha channel is ignored) and disallow A8.
Benjamin Otte [Wed, 19 Sep 2012 15:28:40 +0000 (17:28 +0200)]
blur: Take the radius as a double parameter
It's only ever used like that
Andrea Cimitan [Fri, 13 Apr 2012 09:59:26 +0000 (11:59 +0200)]
Add code for blurring (original code from Unico, copyright fine for Gtk+)
Ani Peter [Wed, 19 Sep 2012 20:58:21 +0000 (02:28 +0530)]
Updated Malayalam file
Ani Peter [Wed, 19 Sep 2012 20:56:53 +0000 (02:26 +0530)]
Updated Malayalam file
Cosimo Cecchi [Wed, 19 Sep 2012 19:41:19 +0000 (15:41 -0400)]
spinbutton: fix style context path for internal buttons
We were adding one child too much to the style context path when
generating it for the internal buttons, which in turn caused sibling
selectors from the theme such as :first-child to apply to both buttons
under certain circumstances. Spotted by Lapo Calamandrei.
Cosimo Cecchi [Wed, 19 Sep 2012 19:22:54 +0000 (15:22 -0400)]
Revert "levelbar: start filling from the bottom"
This reverts commit
4b3ed75f7d14bc10a045aeb4a3873ff36eee966a.
I didn't see https://bugzilla.gnome.org/show_bug.cgi?id=684288 - it
makes more sense to properly fix this for the next cycle.
Stefano Facchini [Mon, 17 Sep 2012 20:29:54 +0000 (22:29 +0200)]
levelbar: start filling from the bottom
As long as we don't have an API for explicitly inverting the bar, it
makes more sense for the progress in vertical orientation to fill from
the bottom.
Praveen Illa [Wed, 19 Sep 2012 18:36:22 +0000 (00:06 +0530)]
Updated Telugu Translation
Marek Kasik [Tue, 18 Sep 2012 12:18:15 +0000 (14:18 +0200)]
printing: Add "Custom." prefix only once to paper size
Check whether "Custom." prefix is already present in the name
of selected paper size. (#679883)
A S Alam [Wed, 19 Sep 2012 13:48:39 +0000 (19:18 +0530)]
update Punjabi Translation
Benjamin Otte [Wed, 19 Sep 2012 13:32:38 +0000 (15:32 +0200)]
cssprovider: Remove another path that can't be reached
... because the return value of a function is always TRUE.
Benjamin Otte [Wed, 19 Sep 2012 13:30:21 +0000 (15:30 +0200)]
docs: Clarify GtkCssProvider loading return values
Benjamin Otte [Wed, 19 Sep 2012 13:18:19 +0000 (15:18 +0200)]
cssprovider: Get rid of return value
... that is always TRUE.
Rajesh Ranjan [Wed, 19 Sep 2012 11:58:41 +0000 (17:28 +0530)]
hindi update
Rajesh Ranjan [Wed, 19 Sep 2012 11:51:34 +0000 (17:21 +0530)]
hindi update
Murray Cumming [Thu, 19 Jul 2012 09:34:16 +0000 (11:34 +0200)]
GtkSettings: Fix small typo in docs.
Fran Diéguez [Wed, 19 Sep 2012 01:05:38 +0000 (03:05 +0200)]
Updated Galician translations
Matthias Clasen [Tue, 18 Sep 2012 22:36:33 +0000 (18:36 -0400)]
bump version
Matthias Clasen [Tue, 18 Sep 2012 22:35:16 +0000 (18:35 -0400)]
3.5.18
Matthias Clasen [Tue, 18 Sep 2012 21:35:16 +0000 (17:35 -0400)]
Prepare for 3.5.18
Matthias Clasen [Tue, 18 Sep 2012 19:10:24 +0000 (15:10 -0400)]
Fix distcheck
A mention of gtkmodelmenu.h was leftover in Makefile.am.
Matthias Clasen [Tue, 18 Sep 2012 17:36:35 +0000 (13:36 -0400)]
Avoid an unintented export
GtkStyleCascade is entirely private, so don't leak any symbols.
Matthias Clasen [Tue, 18 Sep 2012 16:55:38 +0000 (12:55 -0400)]
Fix gdk docs build
This took far too long: The actual problem turned out to
be an unclosed <SECTION> in gdk3-sections.txt.
Matthias Clasen [Tue, 18 Sep 2012 15:43:20 +0000 (11:43 -0400)]
GdkWindow: remove reference to a long-removed example
Cosimo Cecchi [Tue, 18 Sep 2012 17:48:07 +0000 (13:48 -0400)]
mountoperation: fix previous commit
We don't want to call this method if there's no shell agent.
Cosimo Cecchi [Tue, 18 Sep 2012 17:44:04 +0000 (13:44 -0400)]
mountoperation: don't timeout proxied mount operation dialogs
When we proxy mount operation dialogs to the Shell agent, don't use a
timeout for the remote calls, since we will be waiting on user
interaction.
Daniel Mustieles [Tue, 18 Sep 2012 14:37:16 +0000 (16:37 +0200)]
Updated Spanish translation
Benjamin Otte [Tue, 18 Sep 2012 13:24:31 +0000 (15:24 +0200)]
Raleigh: Improve the spinner animation
Make it closer to how it was previously.
Ryan Lortie [Tue, 18 Sep 2012 12:57:53 +0000 (08:57 -0400)]
GtkAccelLabel: adjust recent accel changes
In the event that a GtkAccelKey was present for the closure but it
contained a keyval of 0 the previous code would show "". After the
recent adjustments, "-/-" would be shown in this case.
It turns out to be a pretty common case, so fix the logic to stop using
'0' as a magic value to mean "don't have an accel" and add a separate
boolean for that purpose.
Benjamin Otte [Tue, 18 Sep 2012 11:26:20 +0000 (13:26 +0200)]
cssimage: Add a hack to get antialiased circles
We like to draw circles in themes, and as radial gradients are the only
okayish way to do that, at least make them antialiased.
Sandeep Sheshrao Shedmake [Tue, 18 Sep 2012 07:49:41 +0000 (13:19 +0530)]
Updated Marathi Translations
Bruce Cowan [Tue, 18 Sep 2012 07:24:49 +0000 (08:24 +0100)]
Updated British English translation
Matthias Clasen [Tue, 18 Sep 2012 02:47:36 +0000 (22:47 -0400)]
Force spinners to be square
Matthias Clasen [Tue, 18 Sep 2012 02:30:14 +0000 (22:30 -0400)]
GtkSettings: Properly clean up style providers
Matthias Clasen [Tue, 18 Sep 2012 02:10:59 +0000 (22:10 -0400)]
Revert "Bind the themes to the livecycle of the screen"
This reverts commit
1f5dea9eba4de5a54e9370fe8e4b90e6c0cec200,
since it was causeing noticable behaviour changes.
Previously, GTK_DATA_PREFIX=/ ./gtk3-demo would start
gtk3-demo with the Raleigh theme. With that change, it
was starting with no theme at all (i.e. all black).
Gabor Kelemen [Mon, 17 Sep 2012 22:08:25 +0000 (00:08 +0200)]
Updated Hungarian translation
Matthias Clasen [Mon, 17 Sep 2012 21:37:03 +0000 (17:37 -0400)]
gtk-demo: fancier css demo
Thanks to Lapo Calamandrei.
Rafael Ferreira [Mon, 17 Sep 2012 19:40:38 +0000 (15:40 -0400)]
Updated header for Brazilian Portuguese.
Og B. Maciel [Mon, 17 Sep 2012 19:39:01 +0000 (15:39 -0400)]
Updated Brazilian Portuguese translation.
Benjamin Otte [Mon, 17 Sep 2012 11:41:18 +0000 (13:41 +0200)]
css: Add a spinner animation to the default theme
Benjamin Otte [Mon, 17 Sep 2012 15:00:02 +0000 (17:00 +0200)]
cssanimation: Implement pausing the animation
Benjamin Otte [Mon, 17 Sep 2012 09:34:54 +0000 (11:34 +0200)]
stylecontext: Always create animations
Even when there is no current values, do create animations. This ensures
that animations do exist for unmapped widgets when they get mapped
later.
Benjamin Otte [Mon, 17 Sep 2012 09:30:21 +0000 (11:30 +0200)]
stylecontext: Only create transitions conditionally
While regular animations should always be created, transitions should
not. This patch allows to express this by passing NULL as the values to
transition from.
It also adds a gtk_style_context_should_create_transitions() function
that returns TRUE when transitions should be created.
Benjamin Otte [Mon, 17 Sep 2012 09:22:06 +0000 (11:22 +0200)]
stylecontext: Refactor the way animations are started and stopped
We now create animation objects unconditionally, but we only run the
animation loop when gtk_style_context_should_animate() return TRUE.
Benjamin Otte [Mon, 17 Sep 2012 08:53:16 +0000 (10:53 +0200)]
stylecontext: Clear animations for values kept in cache
Benjamin Otte [Mon, 17 Sep 2012 08:48:38 +0000 (10:48 +0200)]
stylecontext: Remove leftover debugging
... that actually was both wrong, a performance failure and has been
there since the original checkin.
Updating the cached style data absolutely does not mean clearing all
cached style data first. There's nothing to update then.
Benjamin Otte [Sun, 16 Sep 2012 17:07:40 +0000 (19:07 +0200)]
csscomputedvalues: Handle starting animations differently
Benjamin Otte [Sun, 16 Sep 2012 16:56:32 +0000 (18:56 +0200)]
animation: Don't set the changed properties anymore
The code is not needed anymore. And it looked wrong, too, so I'm glad
it's gone.
Benjamin Otte [Sun, 16 Sep 2012 16:51:07 +0000 (18:51 +0200)]
csscomputedvalues: Compute the changes by animations ourselves
Instead of letting the animation set a bitmask unconditionally, actually
compare the before and after values for changes.
Benjamin Otte [Sun, 16 Sep 2012 16:45:17 +0000 (18:45 +0200)]
cssimage: Make cross-fade code safe for non-integer sizes
This includes sizes < 1px, which previously caused a SEGV.
Benjamin Otte [Sun, 16 Sep 2012 16:44:59 +0000 (18:44 +0200)]
cssvalue: Fix out-of-bounds in array transition code
Cosimo Cecchi [Mon, 10 Sep 2012 17:15:25 +0000 (13:15 -0400)]
themingengine: animate spinners again
Using the animation specified with CSS by the theme.
Benjamin Otte [Sun, 16 Sep 2012 16:42:25 +0000 (18:42 +0200)]
cssvalue: Always consider values equal to themselves
Cosimo Cecchi [Mon, 10 Sep 2012 17:10:47 +0000 (13:10 -0400)]
csseasevalue: fix wrong priority in steps easing transformation
We need to add parentheses around the ternary operator, or it will be
applied to the whole expression.
Benjamin Otte [Fri, 14 Sep 2012 00:10:53 +0000 (02:10 +0200)]
tests: Add a simple CSS test for cross-fade
Benjamin Otte [Fri, 14 Sep 2012 00:06:14 +0000 (02:06 +0200)]
cssimage: Implement (most of) current cross-fade syntax
The CSS4 spec adapted their cross-fade syntax again. Yay!
(The previous parser was completely broken anyway...)
Benjamin Otte [Thu, 13 Sep 2012 16:11:29 +0000 (18:11 +0200)]
csscomputedvalues: Get rid of animated values
Merge the animated values code into the computed values code. This
should get rid of various bugs related to animated->computed updating.
Benjamin Otte [Thu, 13 Sep 2012 14:23:36 +0000 (16:23 +0200)]
csscomputedvalues: Store animated values here
Actually use the GtkCssComputedValues to store the computed values here
instead of putting them into the GtkCssAnimatedValues separately.
Benjamin Otte [Thu, 13 Sep 2012 12:25:52 +0000 (14:25 +0200)]
csscomputedvalues: Allow storing animated values here
It's not used yet, but that will come in the next patch(es). This is a
separate patch to make sure we didn't mess up anything.
Benjamin Otte [Thu, 13 Sep 2012 12:15:22 +0000 (14:15 +0200)]
csscomputedvalues: Inline function
Benjamin Otte [Wed, 12 Sep 2012 13:27:59 +0000 (15:27 +0200)]
animation: Add _gtk_style_animation_is_static()
This will be useful to not trigger updates all the time when nothing is
happening (ie due to animations being paused or due to them having
reached their final value).
Benjamin Otte [Mon, 10 Sep 2012 11:57:56 +0000 (13:57 +0200)]
css: Add animation support
This adds the GtkCssAnimation class and the code needed to hook it into
GtkStyleContext. It takes the values out of the CSS "animation"
properties and does animations. See
http://dev.w3.org/csswg/css3-animations/
for details.
Note that the code for starting and stopping animations with widget
visibility doesn't work yet.
Benjamin Otte [Mon, 10 Sep 2012 11:50:10 +0000 (13:50 +0200)]
widget: Use gtk_widget_queue_draw() for queueing redraws
This change is necessary because the old code did not accound for corner
cases (like translucent child windows), which could stop
gtk_widget_queue_resize() to not trigger redraws.
Benjamin Otte [Mon, 10 Sep 2012 10:35:46 +0000 (12:35 +0200)]
stylecontext: Provide a function for getting the style provider
This will be necessary for creating the computed values for keyframes.
Benjamin Otte [Mon, 10 Sep 2012 10:29:09 +0000 (12:29 +0200)]
window: Add the .background class to windows unconditionally
Benjamin Otte [Mon, 10 Sep 2012 10:15:44 +0000 (12:15 +0200)]
css: Implement 'animation' shorthand parsing
Benjamin Otte [Tue, 22 May 2012 11:41:05 +0000 (13:41 +0200)]
gtk-demo: Add animated pixbufs example
Benjamin Otte [Thu, 19 Apr 2012 15:05:22 +0000 (17:05 +0200)]
tests: Add test for last commit
Benjamin Otte [Thu, 19 Apr 2012 15:01:37 +0000 (17:01 +0200)]
cssparser: Don't use a free'd string in error messages
Benjamin Otte [Thu, 19 Apr 2012 12:50:38 +0000 (14:50 +0200)]
cssstyleproperty: Add animation properties
Benjamin Otte [Thu, 19 Apr 2012 12:50:05 +0000 (14:50 +0200)]
cssvalue: Add animation enum properties
Benjamin Otte [Thu, 19 Apr 2012 01:58:28 +0000 (03:58 +0200)]
styleprovider: Add query function for keyframes
Benjamin Otte [Thu, 19 Apr 2012 01:43:17 +0000 (03:43 +0200)]
tests: Add parsing test for keyframe parsing
Ensure we order properly when printing
Benjamin Otte [Thu, 19 Apr 2012 01:42:33 +0000 (03:42 +0200)]
tests: Add tests for keyframe parsing
Ensure we parse empty keyframes correctly
Benjamin Otte [Thu, 19 Apr 2012 01:41:41 +0000 (03:41 +0200)]
cssprovider: Add parsing support for @keyframes
Ryan Lortie [Mon, 17 Sep 2012 16:34:33 +0000 (12:34 -0400)]
gtk.symbols fixup
Ryan Lortie [Tue, 11 Sep 2012 15:38:06 +0000 (11:38 -0400)]
gtkmodelmenu: simplify logic, expose bind API
Make the main (and only) entry-point to gtkmodelmenu.c the now-public
gtk_menu_shell_bind_model().
Move the convenience constructors (gtk_menu_new_from_model() and
gtk_menu_bar_new_from_model()) to their proper files.
Remove the private header file.
Simplify the code a bit by making the initial populate part of the
bind() call.
https://bugzilla.gnome.org/show_bug.cgi?id=682831
Ryan Lortie [Mon, 10 Sep 2012 18:36:23 +0000 (14:36 -0400)]
GtkAccelLabel: add manual accel API
Add an API to GtkAccelLabel for hardcoding the accel key to be displayed
(ie: allowing us to bypass the GtkAccelGroup lookup).
Use that from the GMenuModel-based GtkMenu construction code instead of
passing around the accel group.
This makes accel labels work in bloatpad again.
This patch effectively removes any hope of automatic runtime accel
changes in GMenuModel-based menus without additional application
support but it leaves the door open for this to be supported again in
the future (if we decide that it's important).
https://bugzilla.gnome.org/show_bug.cgi?id=683738
Ryan Lortie [Fri, 24 Aug 2012 18:11:37 +0000 (14:11 -0400)]
GtkModelMenuItem: add a submenu action attribute
Add support for a stateful action associated with a submenu. The action
state is set to TRUE when the menu is shown and FALSE when it is
unshown.
This is useful to avoid unnecessary processing for menus that have
frequently-changing content.
A possible future feature is to add support for asynchronously filling
the initial state of the menu by waiting until the action actually emits
its state-change signal to TRUE before showing the menu.
A silly example has been added to Bloatpad to demonstrate the new
feature.
https://bugzilla.gnome.org/show_bug.cgi?id=682630
Lars Uebernickel [Thu, 13 Sep 2012 17:10:24 +0000 (13:10 -0400)]
Add example for "action-namespace" attribute
Theppitak Karoonboonyanan [Mon, 17 Sep 2012 15:37:40 +0000 (22:37 +0700)]
Updated Thai translation.
William Jon McCann [Mon, 17 Sep 2012 11:40:54 +0000 (07:40 -0400)]
Add back gtk_css_provider_get_named
Was in the original patch but was not in
1f5dea9 probably due to
a bad rebase.
https://bugzilla.gnome.org/show_bug.cgi?id=683896
Cosimo Cecchi [Mon, 17 Sep 2012 13:50:03 +0000 (09:50 -0400)]
menubutton: set DROPDOWN_MENU hint on the menu toplevel
Restore the behavior introduced in
598163e52684019e4975c3d4ca728a54b00c2f74, which regressed in commit
5a3442bf9c470736c8846534607be5825c22410b.
Ignacio Casal Quinteiro [Mon, 17 Sep 2012 12:50:18 +0000 (14:50 +0200)]
Do not introspect gtk_color_button_get_rgba.
This method is deprecated so it gets in the way of the
implemented gtk_color_chooser_get_rgba.
Matthias Clasen [Mon, 17 Sep 2012 11:51:04 +0000 (07:51 -0400)]
Preserve gtk_widget_get_default_style semantics
Make sure that we return a GtkStyle even if there's no screen yet.
Nilamdyuti Goswami [Mon, 17 Sep 2012 07:48:36 +0000 (13:18 +0530)]
Assamese translation updated
Matthias Clasen [Mon, 17 Sep 2012 03:25:40 +0000 (23:25 -0400)]
Move the gtk_shadow_type check down to gtk_render_frame
In gtk_menu_bar_draw, the check for shadow type != none
disables rendering of the background instead of the frame.
The check should be moved down to gtk_render_frame.
Patch by Peter de Ridder,
http://bugzilla.gnome.org/show_bug.cgi?id=670390